<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 未完成
        const strategies = {
            isNonEmpty(val,errMsg){
                if(val===''){
                    return errMsg;
                }
            },
            minLength(val,length,errMsg){
                if(val.length<length){
                    return errMsg;
                }
            },
            isMobile(val,errMsg){
                if(!/(^1[3|5|8][0-9]{9}$)/.test( value )){
                    return errMsg;
                }
            }
        }

        const 
    </script>
</body>
</html>